/* 统一导航栏样式 */
.unified-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

/* 左侧品牌和菜单 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-brand i {
    color: #3498db;
    font-size: 1.4rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: #5a6c7d;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-item:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.nav-item.active {
    background: #3498db;
    color: white;
}

.nav-item.active i {
    color: white;
}

/* 右侧用户信息 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#navUsername {
    font-weight: 500;
    color: #2c3e50;
}

.nav-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-btn {
    background: #3498db;
    color: white;
}

.login-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.logout-btn {
    background: #e74c3c;
    color: white;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* 响应式设计 - 移除汉堡包菜单，保持水平导航 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-left {
        gap: 10px;
    }
    
    .nav-menu {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .nav-item span {
        display: inline;
    }
    
    #navUsername {
        display: none;
    }
    
    .nav-brand span {
        display: none;
    }
}

/* 页面内容区域调整（为固定导航栏留出空间） */
body {
    padding-top: 60px;
}

/* 登录页面特殊处理 */
body.login-page {
    padding-top: 0;
}

body.login-page .unified-navbar {
    display: none;
}